<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
/*
 *  Copyright (c) 2010 Peter Lényi
 *  Licensed under The BSD License
 *
 * @author  Peter Lényi
 * @version 20100509F3
 */
%>
<fmt:bundle basename="Gui" prefix="Gui.">
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type"   content="text/html;charset=UTF-8"/>
        <meta http-equiv="pragma"         content="no-cache"/>
        <meta http-equiv="cache-control"  content="no-cache"/>
        <meta name="generator"    content="Gem File Server"/>
        <meta name="robot"        content="none"/>
        <meta name="googlebot"    content="noarchive"/>
        <%@include file="../WEB-INF/jspf/style.jsp" %>
        <title><fmt:message key="page.file.delete.title" /></title>
    </head>
    <body onload="document.getElementById('form.password').focus();">
        <%@include file="../WEB-INF/jspf/header.jsp" %>
        <%@include file="../WEB-INF/jspf/sitenav.jsp" %>
        <section>
            <c:if test="${not empty sessionScope.msg}">
                <article id="a0">
                    <header>
                        <h3><fmt:message key="page.msg" /></h3>
                    </header>
                    <ul>
                    <c:forEach items="${sessionScope.msg}" var="msg">
                        <li><c:out value="${msg}" /></li>
                    </c:forEach>
                    </ul>
                </article>
                <% session.removeAttribute("msg"); %>
            </c:if>
            <article id="a1">
                <header>
                    <h3><fmt:message key="page.file.delete.title" /></h3>
                </header>
                <form action="<c:out value="${pageContext.request.contextPath}" />/file/delete/post" method="post">
                    <input id="form.uin" name="form.uin" type="hidden" value="<c:out value="${param[\"uin\"]}" />" />
                    <fieldset>
                        <legend><fmt:message key="file.form.password.warning" /></legend>
                        <table>
                            <tr>
                                <th scope="row"><label for="form.password" title="<fmt:message key="file.form.password.tooltip" />"><fmt:message key="file.form.password.label" /></label></th>
                                <td><input id="form.password" name="form.password" type="text" /></td>
                            </tr>
                        </table>
                    </fieldset>
                    <input id="form.submit" name="form.submit" type="submit" value="<fmt:message key="action.file.delete.do" />" />
                </form>
                <nav>
                    <ul>
                        <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/details/pre?uin=<c:out value="${param[\"uin\"]}" />"><fmt:message key="page.file.details.title" /></a></li>
                        <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/download/jsp?uin=<c:out value="${param[\"uin\"]}" />"><fmt:message key="page.file.download.title" /></a></li>
                        <li><a href="<c:out value="${pageContext.request.contextPath}" />/file/update/pre?uin=<c:out value="${param[\"uin\"]}" />"><fmt:message key="page.file.update.title" /></a></li>
                    </ul>
                </nav>
            </article>
        </section>
        <%@include file="../WEB-INF/jspf/footer.jsp" %>
    </body>
</html>
</fmt:bundle>